package ru.incoremedia.gwttest.core.server.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class StreamUtils {

    public static void transfer(OutputStream out, InputStream in) throws IOException {
        int read = 0;
        byte[] bytes = new byte[65536];

        while((read = in.read(bytes)) != -1) {
           out.write(bytes, 0, read);
        }
    }
    
}
